//////////////////////////////////////////////////////////////////////////
// PeekPocket - the hassle-free WiFi scanner for Windows Mobile
// coded by dzolee
// http://dzolee.blogspot.com
//
// TextCache - this provides strings in the current language
//////////////////////////////////////////////////////////////////////////

#pragma once
#include "SettingsStorage.h"

//////////////////////////////////////////////////////////////////////////
enum TextEnum
{
	//Mainform Tabs
	teScanner=0,
	teOptions,

	//Mainform buttons
	teExit,
	teSuspend,
	teResume,

	//Options
	teShowPeers,
	teHidePeers,
	teShowSecure,
	teHideSecure,
	teSoundOn,
	teSoundOff,

	teUseAdapter,
	teListFontSize,
	teScanSpeed,

	teSlowest,
	teSlow,
	teNormal,
	teFast,
	teFastest,

	//Scanner form
	teActive,
	teTapAPName,
	teTapToRestore,
	teGoLarge,

	//Scanner form - list fields
	teName,
	teSig,
	teCh,
	teType,
	teSec,
	teMAC,
	teBestSig,
	teWorstSig,
	teFirstSeen,
	teLastSeen,

	//Scanner form, list item texts
	tePeer,
	teAP,
	teWEP,
	teOpen,
	teShared,
	teAuto,
	teWPA,
	teWPAPSK,
	teWPANone,

	teHistory,
	teConnect,
	teDisconnect,

	teNotFound,
	teMAX
};

//////////////////////////////////////////////////////////////////////////
class CTextCache
{
public:
	CTextCache();
	~CTextCache();

	bool ReadStrings(LanguagesEnum leLang);
	CString &GetString(int nID);

private:
	LanguagesEnum m_leCurrentLng;
	CString m_strTexts[teMAX];
};
